List orders
curl --request GET \
--url https://firespark.cloud/api/storefront/v1/customers/{id}/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://firespark.cloud/api/storefront/v1/customers/{id}/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://firespark.cloud/api/storefront/v1/customers/{id}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://firespark.cloud/api/storefront/v1/customers/{id}/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://firespark.cloud/api/storefront/v1/customers/{id}/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://firespark.cloud/api/storefront/v1/customers/{id}/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://firespark.cloud/api/storefront/v1/customers/{id}/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "ord-48291",
"store_id": "downtown",
"channel_id": "app",
"fulfillment_id": "delivery",
"fulfillment_type": "DELIVERY",
"status": "COMPLETED",
"payment_status": "PAID",
"fulfillment_status": "DELIVERED",
"totals": {
"currency": "USD",
"subtotal": 12.99,
"discount_total": 0,
"tax_total": 1.95,
"total": 14.94
},
"issued_at": "2026-06-17T14:31:45.000Z"
}
]
}
Orders
List orders
Retrieve a customer’s order history for receipts, reorder, or support.
GET
/
customers
/
{id}
/
orders
List orders
curl --request GET \
--url https://firespark.cloud/api/storefront/v1/customers/{id}/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://firespark.cloud/api/storefront/v1/customers/{id}/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://firespark.cloud/api/storefront/v1/customers/{id}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://firespark.cloud/api/storefront/v1/customers/{id}/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://firespark.cloud/api/storefront/v1/customers/{id}/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://firespark.cloud/api/storefront/v1/customers/{id}/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://firespark.cloud/api/storefront/v1/customers/{id}/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "ord-48291",
"store_id": "downtown",
"channel_id": "app",
"fulfillment_id": "delivery",
"fulfillment_type": "DELIVERY",
"status": "COMPLETED",
"payment_status": "PAID",
"fulfillment_status": "DELIVERED",
"totals": {
"currency": "USD",
"subtotal": 12.99,
"discount_total": 0,
"tax_total": 1.95,
"total": 14.94
},
"issued_at": "2026-06-17T14:31:45.000Z"
}
]
}
Returns orders placed by the authenticated customer. Use this endpoint for order history screens, support lookups, or reorder flows in your owned channel (app, web, kiosk).
Requires a Storefront API access token from Token
exchange. The token scopes requests to
the authenticated customer and merchant.
Path parameters
| Parameter | Required | Description |
|---|---|---|
id | Yes | Customer identifier. Alphanumeric characters, _, and - only. 1–64 characters. |
Query parameters
| Parameter | Required | Description |
|---|---|---|
from | No | ISO 8601 datetime. Return orders created on or after this time. |
to | No | ISO 8601 datetime. Return orders created on or before this time. |
Request
curl "https://firespark.cloud/api/storefront/v1/customers/cust-001/orders?from=2026-06-01T00:00:00Z&to=2026-06-30T23:59:59Z" \
-H "Authorization: Bearer ACCESS_TOKEN"
Response
The response wraps an array of order objects indata, newest first.
{
"data": [
{
"id": "ord-48291",
"store_id": "downtown",
"channel_id": "app",
"fulfillment_id": "delivery",
"fulfillment_type": "DELIVERY",
"status": "COMPLETED",
"payment_status": "PAID",
"fulfillment_status": "DELIVERED",
"totals": {
"currency": "USD",
"subtotal": 12.99,
"discount_total": 0,
"tax_total": 1.95,
"total": 14.94
},
"issued_at": "2026-06-17T14:31:45.000Z"
}
]
}
For the full checkout flow from cart to Fire spark routing into the merchant
POS, see Placing orders.
Error responses
| Status | Description |
|---|---|
401 | Missing or invalid access token |
404 | Customer not found |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Customer identifier.
Required string length:
1 - 64Pattern:
^[a-zA-Z0-9_-]+$Response
200 - application/json
Ok
⌘I